package main.dao;

import java.util.List;

import main.entity.VoteOptionVO;

import org.springframework.stereotype.Repository;

@SuppressWarnings("unchecked")
@Repository("voteOptionDAO")
public class VoteOptionDAO extends BaseDAO<VoteOptionVO> {
	
	public List<?> getByVoteID(Integer voteID){
		String queryString = "from main.entity.VoteOptionVO opt where opt.voteID="+voteID;
		return getHibernateTemplate().find(queryString);
	}
	
}
